# Author:wyq
data = {
    '北京':{
        "昌平":{
            "沙河":["oldboy","test"],
            "天通苑":["链家地产","我爱我家"]
        },
        "朝阳":{
            "望京":["奔驰","陌陌"],
            "国贸":{"CICC","HP"},
            "东直门":{"Advent","飞信"},
        },
        "海淀":{},
    },
    '山东':{
        "德州":{},
        "青岛":{},
        "济南":{}
    },
    '广东':{
        "东莞":{},
        "常熟":{},
        "佛山":{},
    },
}
user_exit = True
while user_exit:
    for i in data:
        print(i)
    user_choice_One = input("请输入你要选择的》》》")
    if user_choice_One in data:
        while user_exit:
            for i2 in data[user_choice_One]:
                print(i2)
            user_choice_two = input("请输入你要选择的》》》")
            if user_choice_two in data[user_choice_One]:
                while user_exit:
                    for i3 in data[user_choice_One][user_choice_two]:
                        print(i3)
                    user_choice_three = input("请输入你要选择的》》》")
                    if user_choice_three in data[user_choice_One][user_choice_two]:
                        for i4 in data[user_choice_One][user_choice_two][user_choice_three]:
                            print(i4)
                        user_choice_four = input("最后一层，请按b返回》》》")
                        if user_choice_four == "b":
                            pass
                        elif user_choice_four == "q":
                            user_exit = False
                    elif user_choice_three == "b":
                        break
                    elif user_choice_three == "q":
                        user_exit = False
            elif user_choice_two == "b":
                break
            elif user_choice_two == "q":
                user_exit = False
    elif user_choice_One == "b":
        break
    if user_choice_One == "q":
        user_exit = False
   # break